<?php

$layout_defs['edanz_Feedback']['subpanel_setup'] = array(

		'feedbackpoints' => array(
                        'order' => 100,
                        'module' => 'edanz_FeedbackPoint',
                        'get_subpanel_data' => 'feedbackpoints',
                        'sort_order' => 'asc',
                        'sort_by' => 'category',
                        'subpanel_name' => 'default',
                        'title_key' => 'LBL_FEEDBACK_POINTS_SUBPANEL_TITLE',
                        'top_buttons' => array(
                        array('widget_class' => 'SubPanelTopSelectButton'),
                        ),
		),

		'email_history' => array(
			'order' => 200,
			'sort_order' => 'desc',
			'sort_by' => 'date_modified',
			'title_key' => 'LBL_EMAIL_HISTORY_SUBPANEL_TITLE',
			'type' => 'collection',
			'subpanel_name' => 'email_history',   //this values is not associated with a physical file.
			'module'=>'Emails',
			'top_buttons' => array(
//				array('widget_class' => 'SubPanelTopComposeEmailButton'),
			),	
			'collection_list' => array(	
				'emails' => array(
					'module' => 'Emails',
					'subpanel_name' => 'ForHistory',
					'get_subpanel_data' => 'emails',
				),	
		     ),
		),

);


global $beanList;
if (isset($beanList['SecurityGroups'])) {
	$layout_defs["edanz_Feedback"]["subpanel_setup"]["securitygroups_edanz_feedback"] = array (
		'order' => 999,
  		'module' => 'SecurityGroups',
  		'subpanel_name' => 'default',
  		'sort_order' => 'asc',
  		'sort_by' => 'id',
  		'title_key' => 'LBL_SECURITYGROUPS_SUBPANEL_TITLE',
  		'get_subpanel_data' => 'securitygroups_edanz_feedback',
  		'top_buttons' => 
  		array (
			0 => 
				array (
  					'widget_class' => 'SubPanelTopSelectButton',
  					'mode' => 'MultiSelect',
    			),
  		),
	);
}
?>
